"use strict";
const mongoose = require("mongoose");
const {defaultStr} = require("../lib/model_defaults");

const scheme = new mongoose.Schema({
  domainId: defaultStr,
  mediaId: defaultStr,
});

const createIndex = function() {
  scheme.index({domainId: 1});
};

createIndex();
mongoose.model("logo", scheme);
